export default [
    {
      path: "/home",
      name: "Home",
      component: () => import("@/views/Home/index.vue"),
      redirect:"/home/music",
      children: [
        {
          path: "music",
          name: "Music",
          component: () => import("@/views/Home/components/Music/index.vue"),
        },
        {
          path: "news",
          name: "News",
          component: () => import("@/views/Home/components/News/index.vue"),
          children:[
            {
              path:"detail",
              name:"Detail",
              component: () => import("@/views/Home/components/News/Detail/index.vue"),
            }
          ]
        },
      ],
    },
    {
      path: "/login",
      name: "Login",
      component: () => import("@/views/Login/index.vue"),
    },
    {
      path: "/",
      redirect: "/home",
    },
    {
      // 任意路由的配置，必须放在路由表的最后
        path:"/:pathMatch(.*)*",
        component:()=>import("@/views/NotFound/index.vue")
    }
  ];
  